(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/user/index" ], {
    "21f4": function(e, n, i) {
        (function(r) {
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.default = void 0;
            var e, o = (e = i("a34a")) && e.__esModule ? e : {
                default: e
            };
            function l(e, t, a, n, o, i, r) {
                try {
                    var s = e[i](r), l = s.value;
                } catch (e) {
                    return a(e), 0;
                }
                s.done ? t(l) : Promise.resolve(l).then(n, o);
            }
            function t(s) {
                return function() {
                    var e = this, r = arguments;
                    return new Promise(function(t, a) {
                        var n = s.apply(e, r);
                        function o(e) {
                            l(n, t, a, o, i, "next", e);
                        }
                        function i(e) {
                            l(n, t, a, o, i, "throw", e);
                        }
                        o(void 0);
                    });
                };
            }
            var s = getApp(), a = {
                data: function() {
                    return {
                        module_name: s.globalData.module_name,
                        showAlert_login: !1,
                        userinfo: r.getStorageSync("userinfo"),
                        setting: r.getStorageSync("setting"),
                        wxCode: "",
                        systemtype: "",
                        showAlert: !1,
                        loadposter: 0,
                        contact_title: "",
                        top: 160,
                        login_type: r.getStorageSync("setting").login_type,
                        contact_title_text: "",
                        contact_title_desc: "",
                        contact_id: "",
                        contact_type: "",
                        contact_thumb: "",
                        pageLoading: !0,
                        showToast_login: !1,
                        user_income: {
                            today: 0,
                            yestoday: 0,
                            month: 0,
                            last_month: 0
                        },
                        tools: [],
                        footerCurrent: 0,
                        show_poster: !1,
                        qrcode: "",
                        myqrcode: "",
                        myposter: "",
                        width: 750,
                        cheight: 1334,
                        widthIn: 300,
                        heightIn: 500,
                        bgColor: "#7ACBDC",
                        bgImg: "",
                        imgSrc: null,
                        rpx2px: 1,
                        context: null,
                        pageKey: "",
                        height: 1334,
                        tabBar: [],
                        sharetitle: "",
                        sharepic: "",
                        movie_tpl_num: r.getStorageSync("userinfo").movie_tpl_num,
                        multiple: 2.1,
                        appid: "",
                        path: "",
                        search_id: "",
                        uid: 0,
                        advList: [],
                        warn_num: r.getStorageSync("userinfo").s_1_num,
                        is_tabbar: 1
                    };
                },
                components: {
                    gracePage: (i("e5c8"), function() {
                        i.e("graceUI/components/gracePage").then(function() {
                            return resolve(i("1021"));
                        }.bind(null, i)).catch(i.oe);
                    }),
                    graceLoading: function() {
                        i.e("graceUI/components/graceLoading").then(function() {
                            return resolve(i("1d04"));
                        }.bind(null, i)).catch(i.oe);
                    },
                    graceFullLoading: function() {
                        i.e("graceUI/components/graceFullLoading").then(function() {
                            return resolve(i("3be5"));
                        }.bind(null, i)).catch(i.oe);
                    },
                    graceEmptyNew: function() {
                        i.e("graceUI/components/graceEmptyNew").then(function() {
                            return resolve(i("f8df"));
                        }.bind(null, i)).catch(i.oe);
                    },
                    graceDialog: function() {
                        i.e("graceUI/components/graceDialog").then(function() {
                            return resolve(i("f85d"));
                        }.bind(null, i)).catch(i.oe);
                    },
                    graceFlex: function() {
                        i.e("graceUI/components/graceFlex").then(function() {
                            return resolve(i("b5c9"));
                        }.bind(null, i)).catch(i.oe);
                    }
                },
                props: {},
                onShow: function() {
                    var n = this;
                    return t(o.default.mark(function e() {
                        var t, a;
                        return o.default.wrap(function(e) {
                            for (;;) switch (e.prev = e.next) {
                              case 0:
                                return e.next = 2, n.$onLaunched;

                              case 2:
                                for (n.user_info(), t = 0, n.tabBar = r.getStorageSync("tabbar"), a = 0; a < n.tabBar.list.length; a++) -1 != n.tabBar.list[a].url.indexOf("user/index") && (n.pageKey = a, 
                                t = 1);
                                n.is_tabbar = 1 == t ? 1 : 0, r.hideLoading();

                              case 9:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }))();
                },
                onShareAppMessage: function() {
                    var e = "pages/user/index?uid=" + r.getStorageSync("userinfo").user_id;
                    return {
                        title: this.sharetitle,
                        imageUrl: this.sharepic,
                        path: e
                    };
                },
                onPullDownRefresh: function() {
                    this.user_info(), this.loadtools(), this.loadtools2(), this.load_income();
                },
                onLoad: function(e) {
                    var a = this;
                    return t(o.default.mark(function e() {
                        var t;
                        return o.default.wrap(function(e) {
                            for (;;) switch (e.prev = e.next) {
                              case 0:
                                return e.next = 2, a.$onLaunched;

                              case 2:
                                (t = a).setting = r.getStorageSync("setting"), t.tabBar = r.getStorageSync("tabbar"), 
                                t.userinfo = r.getStorageSync("userinfo"), r.hideLoading(), t.login_type = r.getStorageSync("setting").login_type, 
                                a.module_name = s.globalData.module_name, a.loadtools(), a.loadtools2(), a.load_income();

                              case 14:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }))();
                },
                methods: {
                    scan: function() {
                        wx.scanCode({
                            success: function(e) {
                                console.log(e), e.path && (r.setStorageSync("enter_scene", e.path.split("=")[1]), 
                                e = -1 != e.path.indexOf("pagesA") ? e.path.split("?")[0].replace("pagesA", "../../pagesA") : e.path.split("?")[0].replace("pages", ".."), 
                                console.log(e), r.navigateTo({
                                    url: e
                                }));
                            }
                        });
                    },
                    settings: function() {
                        r.getStorageSync("userinfo").nickname || 0 != r.getStorageSync("setting").user_logonin || !wx.getUserProfile ? r.navigateTo({
                            url: "../../pagesA/pages/userA/setting"
                        }) : this.showDialog2();
                    },
                    checksubmessage: function(e) {
                        var a;
                        r.getStorageSync("userinfo").nickname || 0 != r.getStorageSync("setting").user_logonin || !wx.getUserProfile ? (a = this, 
                        wx.requestSubscribeMessage({
                            tmplIds: r.getStorageSync("setting").warn_tplid,
                            success: function(e) {
                                "reject" == e[r.getStorageSync("setting").warn_yhq_tplid] ? wx.showToast({
                                    title: "您拒绝了订阅消息",
                                    duration: 1e3,
                                    success: function(e) {}
                                }) : wx.showToast({
                                    title: "订阅成功",
                                    duration: 1e3,
                                    success: function(e) {
                                        var t = s.globalData.util.url("entry/wxapp/api", {
                                            m: s.globalData.module_name,
                                            o: "subscribemessage"
                                        });
                                        r.request({
                                            url: t,
                                            method: "POST",
                                            header: {
                                                "content-type": "application/x-www-form-urlencoded"
                                            },
                                            data: {
                                                openid: r.getStorageSync("openid"),
                                                type: 1
                                            },
                                            success: function(e) {
                                                var t = a.userinfo;
                                                a.warn_num++, t.s_1_num++, a.userinfo = t, r.setStorageSync("warn_daynum", e.data.warm_daynum);
                                            }
                                        });
                                    }
                                });
                            },
                            fail: function(e) {}
                        })) : this.showDialog2();
                    },
                    movie_tpl: function() {
                        var a;
                        r.getStorageSync("userinfo").nickname || 0 != r.getStorageSync("setting").user_logonin || !wx.getUserProfile ? (a = this, 
                        wx.requestSubscribeMessage({
                            tmplIds: r.getStorageSync("setting").movie_ticker_tpl,
                            success: function(e) {
                                "reject" == e[r.getStorageSync("setting").movie_tpl_xcxdaibaojia] ? wx.showToast({
                                    title: "您拒绝了订阅消息",
                                    duration: 1e3,
                                    success: function(e) {}
                                }) : wx.showToast({
                                    title: "订阅成功",
                                    duration: 1e3,
                                    success: function(e) {
                                        var t = s.globalData.util.url("entry/wxapp/movie_subscribemessage", {
                                            m: s.globalData.module_name
                                        });
                                        r.request({
                                            url: t,
                                            method: "POST",
                                            header: {
                                                "content-type": "application/x-www-form-urlencoded"
                                            },
                                            data: {
                                                openid: r.getStorageSync("openid")
                                            },
                                            success: function(e) {
                                                var t = a.userinfo;
                                                a.movie_tpl_num++, t.movie_tpl_num++, a.userinfo = t, r.setStorageSync("movie_tpl_num", e.data.movie_tpl_num);
                                            }
                                        });
                                    }
                                });
                            },
                            fail: function(e) {}
                        })) : this.showDialog2();
                    },
                    change: function(e) {
                        var t = this, a = this.tabBar.list[e];
                        if (this.pageKey = e, r.setStorageSync("pageKey", e), 1 == a.adtype) {
                            if (1 == a.appid_type && r.getStorageSync("mtwm_url")) return void r.navigateToMiniProgram({
                                appId: "wxde8ac0a21135c07d",
                                path: r.getStorageSync("mtwm_url")
                            });
                            if (1 == a.appid_type && !r.getStorageSync("mtwm_url")) return t.appid_type = 1, 
                            void t.meituan_urlFun();
                            if (2 == a.appid_type && r.getStorageSync("mtsc_url")) return void r.navigateToMiniProgram({
                                appId: "wxde8ac0a21135c07d",
                                path: r.getStorageSync("mtsc_url")
                            });
                            if (2 == a.appid_type && !r.getStorageSync("mtsc_url")) return t.appid_type = 2, 
                            void t.meituan_urlFun();
                            if (3 == a.appid_type && r.getStorageSync("elmwm_url")) return r.navigateToMiniProgram({
                                appId: "wxece3a9a4c82f58c9",
                                path: r.getStorageSync("elmwm_url")
                            }), t.updatepid(), void console.log(r.getStorageSync("elmwm_url"));
                            if (3 == a.appid_type && !r.getStorageSync("elmwm_url")) return t.appid_type = 3, 
                            void t.gettaobaoauth();
                            if (4 == a.appid_type && r.getStorageSync("elmsc_url")) return r.navigateToMiniProgram({
                                appId: "wxece3a9a4c82f58c9",
                                path: r.getStorageSync("elmsc_url")
                            }), t.updatepid(), void console.log(r.getStorageSync("elmsc_url"));
                            if (4 == a.appid_type && !r.getStorageSync("elmsc_url")) return console.log("ccc"), 
                            t.appid_type = 4, void t.gettaobaoauth();
                            if (0 == a.appid_type) return void r.navigateToMiniProgram({
                                appId: a.appid,
                                path: a.path
                            });
                        }
                        if (5 != a.adtype) if (4 != a.adtype) 2 != a.adtype && 3 != a.adtype || (t = s.globalData.util.url("entry/wxapp/api", {
                            m: s.globalData.module_name,
                            o: "ad_kefubind"
                        }), r.request({
                            url: t,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                adtype: "ad",
                                adid: a.adid,
                                openid: r.getStorageSync("openid")
                            },
                            success: function(e) {}
                        }), this.contact_title_desc = "", this.contact_type = "ad", this.contact_id = a.adid, 
                        this.contact_title = a.title, this.contact_title_text = a.title_text, this.contact_title_desc = a.title_desc, 
                        this.contact_thumb = r.getStorageSync("setting").dianwo, this.showDialog3()); else {
                            r.setStorageSync("index_nav", a.url);
                            var n = getCurrentPages();
                            n.reverse();
                            for (var o = a.url.replace("../", ""), i = 0; i < n.length; i++) if (-1 != n[i].route.indexOf(o)) return void r.navigateBack({
                                delta: i
                            });
                            if (-1 == a.url.indexOf("../index/") && -1 == a.url.indexOf("../meituangroup/") && -1 == a.url.indexOf("../user/") && -1 == a.url.indexOf("../movie/") && -1 == a.url.indexOf("../shop/") && -1 == a.url.indexOf("../kefu/") && -1 == a.url.indexOf("../elm/") && -1 == a.url.indexOf("../meituan/") && -1 == a.url.indexOf("../mall/")) return -1 != a.url.indexOf("../../pages/index/") || -1 != a.url.indexOf("../../pages/user/") || -1 != a.url.indexOf("../../pages/kefu/") ? (o = a.url.replace("../../pages/", "../"), 
                            void r.navigateTo({
                                url: o
                            })) : -1 != a.url.indexOf("../../pages/meituan/") || -1 != a.url.indexOf("../../pages/elm/") || -1 != a.url.indexOf("../../pages/eat/") ? (o = a.url.replace("../../pages/", "../../pagesA/pages/"), 
                            void r.navigateTo({
                                url: o
                            })) : -1 != a.url.indexOf("../../pagesA/pages/movie/") || -1 != a.url.indexOf("../../pagesA/pages/shop/") || -1 != a.url.indexOf("../../pagesA/pages/mallA/mallindex") ? (o = a.url.replace("../../pagesA/pages/", "../"), 
                            void r.navigateTo({
                                url: o
                            })) : -1 == a.url.indexOf("../../pagesA/pages/movieA/") && -1 == a.url.indexOf("../../pagesA/pages/shopA/") && -1 == a.url.indexOf("../../pagesA/pages/meituan/") && -1 == a.url.indexOf("../../pagesA/pages/elm/") && -1 == a.url.indexOf("../../pagesA/pages/eat/") && -1 == a.url.indexOf("../../pagesA/pages/userA/") && (-1 != a.url.indexOf("../meituan/") || -1 != a.url.indexOf("../elm/") || -1 != a.url.indexOf("../eat/")) ? (o = a.url.replace("../", "../../pagesA/pages/"), 
                            void r.navigateTo({
                                url: o
                            })) : void r.navigateTo({
                                url: a.url
                            });
                            r.navigateTo({
                                url: a.url
                            });
                        } else r.navigateTo({
                            url: "../kefu/webview?return_url=" + encodeURIComponent(a.url)
                        });
                    },
                    fatherHeight: function(e) {
                        this.height = e;
                    },
                    showDialog1: function() {
                        this.$refs.showAlert_taobaoauth.open();
                    },
                    closeDialog1: function() {
                        this.$refs.showAlert_taobaoauth.hide();
                    },
                    showDialog3: function() {
                        this.$refs.showAlert.open();
                    },
                    closeDialog3: function() {
                        this.$refs.showAlert.hide();
                    },
                    showDialog2: function() {
                        this.$refs.showAlert_login.open();
                    },
                    closeDialog2: function() {
                        this.$refs.showAlert_login.hide();
                    },
                    findorder_do: function(e) {
                        var t = this, a = e.detail.value;
                        a.orderno ? (e = s.globalData.util.url("entry/wxapp/findorder", {
                            m: s.globalData.module_name
                        }), r.request({
                            url: e,
                            method: "GET",
                            data: {
                                openid: r.getStorageSync("openid"),
                                orderno: a.orderno
                            },
                            success: function(e) {
                                e = s.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), e = JSON.parse(e);
                                console.log(e.data), 1 == e.data ? (r.showToast({
                                    title: "订单找回成功",
                                    icon: "none"
                                }), t.load_income()) : 2 == e.data ? r.showToast({
                                    title: "该订单已结算，无法找回",
                                    icon: "none"
                                }) : r.showToast({
                                    title: "未找到该订单",
                                    icon: "none"
                                });
                            }
                        })) : r.showToast({
                            title: "请输入订单号",
                            icon: "none"
                        });
                    },
                    user_info: function() {
                        var t = this, e = s.globalData.util.url("entry/wxapp/userinfonew", {
                            m: s.globalData.module_name
                        });
                        r.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: r.getStorageSync("openid")
                            },
                            success: function(e) {
                                r.setStorageSync("userinfo", e.data.data), t.userinfo = e.data.data;
                            }
                        });
                    },
                    close_poster: function() {
                        this.show_poster = !1;
                    },
                    load_income: function() {
                        var t = this, e = s.globalData.util.url("entry/wxapp/user_income", {
                            m: s.globalData.module_name
                        });
                        r.request({
                            url: e,
                            method: "GET",
                            data: {
                                openid: r.getStorageSync("openid")
                            },
                            success: function(e) {
                                t.user_income = e.data.data, r.stopPullDownRefresh();
                            }
                        });
                    },
                    previewImage: function(e) {
                        r.previewImage({
                            urls: [ e.currentTarget.dataset.src ],
                            current: 0
                        });
                    },
                    userlogin: function() {
                        this.showDialog2();
                    },
                    login: function(t) {
                        var a = this;
                        this.closeDialog2(), r.getSetting({
                            success: function(e) {
                                e.authSetting["scope.userInfo"] ? r.getUserInfo({
                                    success: function(e) {
                                        a.userAuth(t, e.userInfo, "login");
                                    }
                                }) : a.userAuth(t, null, "login");
                            }
                        });
                    },
                    getWxCode: function() {
                        var t = this;
                        wx.login({
                            success: function(e) {
                                t.wxCode = e.code;
                            }
                        });
                    },
                    getUserProfile: function() {
                        var a = this;
                        wx.getUserProfile({
                            desc: "请完善会员资料",
                            success: function(e) {
                                console.log(e.userInfo);
                                var t = s.globalData.util.url("entry/wxapp/userinfonew", {
                                    m: s.globalData.module_name
                                }), e = {
                                    avatarUrl: e.userInfo.avatarUrl,
                                    nickName: e.userInfo.nickName,
                                    openid: r.getStorageSync("openid")
                                };
                                r.request({
                                    url: t,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: e,
                                    success: function(e) {
                                        1 == e.data.status && (r.setStorageSync("userinfo", e.data.data), a.userinfo = e.data.data, 
                                        a.closeDialog2(), r.showToast({
                                            title: "登录成功",
                                            icon: "none"
                                        }));
                                    }
                                });
                            }
                        });
                    },
                    closeAlert: function() {
                        this.closeDialog2();
                    },
                    info: function() {
                        r.getStorageSync("userinfo").nickname || 0 != r.getStorageSync("setting").user_logonin || !wx.getUserProfile ? r.navigateTo({
                            url: "../../pagesA/pages/userA/info"
                        }) : this.showDialog2();
                    },
                    ranking: function() {
                        r.getStorageSync("userinfo").nickname || 0 != r.getStorageSync("setting").user_logonin || !wx.getUserProfile ? r.navigateTo({
                            url: "../../pagesA/pages/userA/ranking"
                        }) : this.showDialog2();
                    },
                    myincome: function() {
                        r.getStorageSync("userinfo").nickname || 0 != r.getStorageSync("setting").user_logonin || !wx.getUserProfile ? r.navigateTo({
                            url: "../../pagesA/pages/userA/income"
                        }) : this.showDialog2();
                    },
                    myorder: function() {
                        r.getStorageSync("userinfo").nickname || 0 != r.getStorageSync("setting").user_logonin || !wx.getUserProfile ? r.navigateTo({
                            url: "../../pagesA/pages/userA/orders"
                        }) : this.showDialog2();
                    },
                    myfans: function() {
                        r.getStorageSync("userinfo").nickname || 0 != r.getStorageSync("setting").user_logonin || !wx.getUserProfile ? r.navigateTo({
                            url: "../../pagesA/pages/userA/fans"
                        }) : this.showDialog2();
                    },
                    cashOutPoint: function() {
                        r.getStorageSync("userinfo").nickname || 0 != r.getStorageSync("setting").user_logonin || !wx.getUserProfile ? r.navigateTo({
                            url: "../../pagesA/pages/userA/withdraw"
                        }) : this.showDialog2();
                    },
                    fxzx: function() {
                        r.getStorageSync("userinfo").nickname || 0 != r.getStorageSync("setting").user_logonin || !wx.getUserProfile ? r.navigateTo({
                            url: "../../pagesA/pages/shareA/index"
                        }) : this.showDialog2();
                    },
                    shoporder: function() {
                        r.getStorageSync("userinfo").nickname || 0 != r.getStorageSync("setting").user_logonin || !wx.getUserProfile ? r.navigateTo({
                            url: "creditorder"
                        }) : this.showDialog2();
                    },
                    findorder: function() {
                        r.getStorageSync("userinfo").nickname || 0 != r.getStorageSync("setting").user_logonin || !wx.getUserProfile ? this.showDialog1() : this.showDialog2();
                    },
                    shopindex: function() {
                        r.getStorageSync("userinfo").nickname || 0 != r.getStorageSync("setting").user_logonin || !wx.getUserProfile ? r.navigateTo({
                            url: "../shop/index"
                        }) : this.showDialog2();
                    },
                    finance: function() {
                        r.getStorageSync("userinfo").nickname || 0 != r.getStorageSync("setting").user_logonin || !wx.getUserProfile ? r.navigateTo({
                            url: "../../pagesA/pages/userA/finance"
                        }) : this.showDialog2();
                    },
                    loadtools: function() {
                        var t = this, e = s.globalData.util.url("entry/wxapp/adlist", {
                            m: s.globalData.module_name
                        });
                        r.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                type: 9,
                                openid: r.getStorageSync("openid"),
                                system_type: r.getStorageSync("systemtype")
                            },
                            success: function(e) {
                                t.tools = e.data.adlist;
                            }
                        });
                    },
                    loadtools2: function() {
                        var t = this, e = s.globalData.util.url("entry/wxapp/adlist", {
                            m: s.globalData.module_name
                        });
                        r.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                type: 8,
                                openid: r.getStorageSync("openid"),
                                system_type: r.getStorageSync("systemtype")
                            },
                            success: function(e) {
                                t.advList = e.data.adlist;
                            }
                        });
                    },
                    openShopad: function(e) {
                        r.getStorageSync("userinfo").nickname || 0 != r.getStorageSync("setting").user_logonin || !wx.getUserProfile ? (e = e.currentTarget.dataset, 
                        this.api_url = e.item_id, this.openad(e)) : this.showDialog2();
                    },
                    openad: function(a) {
                        var e, n = this;
                        1 == a.is_warm && a.tplid ? (e = s.globalData.util.url("entry/wxapp/subscribemessage2", {
                            m: s.globalData.module_name
                        }), r.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: r.getStorageSync("openid"),
                                id: a.item_id,
                                type: 2
                            },
                            success: function(e) {
                                var t;
                                r.setStorageSync("subscribemessage" + a.item_id, e.data.warm_daynum), parseInt(r.getStorageSync("subscribemessage" + a.item_id)) < parseInt(a.tplid_oneday_num) ? (t = new Array(), 
                                t = a.tplid.split(","), wx.requestSubscribeMessage({
                                    tmplIds: t,
                                    success: function(e) {
                                        "reject" == e[t[0]] ? 7 != a.adtype ? n.openad2(a) : r.showToast({
                                            title: "您取消了订阅",
                                            icon: "none"
                                        }) : (e = s.globalData.util.url("entry/wxapp/subscribemessage2", {
                                            m: s.globalData.module_name
                                        }), r.request({
                                            url: e,
                                            method: "POST",
                                            header: {
                                                "content-type": "application/x-www-form-urlencoded"
                                            },
                                            data: {
                                                openid: r.getStorageSync("openid"),
                                                id: a.item_id,
                                                type: 1
                                            },
                                            success: function(e) {
                                                r.setStorageSync("subscribemessage" + a.item_id, e.data.warm_daynum), 7 != a.adtype || r.showToast({
                                                    title: "订阅成功",
                                                    icon: "none"
                                                });
                                            }
                                        }), n.openad2(a));
                                    },
                                    fail: function(e) {
                                        7 != a.adtype ? e.openad2(a) : r.showToast({
                                            title: "您已订阅",
                                            icon: "none"
                                        });
                                    }
                                })) : n.openad2(a);
                            }
                        })) : n.openad2(a);
                    },
                    openad2: function(t) {
                        r.showLoading({
                            title: "加载中...",
                            mask: !1
                        });
                        var e, a, n = this;
                        1 == t.adtype || 14 == t.adtype || 15 == t.adtype ? 0 < t.appid_type2 || 14 == t.adtype || 15 == t.adtype ? (e = s.globalData.util.url("entry/wxapp/index_jump", {
                            m: s.globalData.module_name
                        }), r.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: r.getStorageSync("openid"),
                                adid: t.item_id
                            },
                            success: function(e) {
                                1 == e.data.jump_type ? r.navigateToMiniProgram({
                                    appId: e.data.jump_appid,
                                    path: e.data.jump_path
                                }) : 2 == e.data.jump_type ? (n.contact_type = "ad_new", n.contact_id = t.item_id, 
                                n.contact_title = e.data.title, n.contact_title_text = e.data.title_text, n.contact_title_desc = e.data.title_desc, 
                                n.contact_thumb = r.getStorageSync("setting").dianwo, n.showDialog3()) : r.showToast({
                                    title: e.data.msg,
                                    icon: "none"
                                }), r.hideLoading();
                            }
                        })) : (r.navigateToMiniProgram({
                            appId: t.appid,
                            path: t.path
                        }), r.hideLoading()) : 5 == t.adtype ? (r.navigateTo({
                            url: "../kefu/webview?return_url=" + encodeURIComponent(t.url) + "&t=" + Date.parse(new Date())
                        }), r.hideLoading()) : 10 == t.adtype ? (this.$refs.addmini.showAddMiniProgramTips = 1, 
                        r.hideLoading()) : 11 == t.adtype || 7 == t.adtype ? r.hideLoading() : 4 == t.adtype ? (r.setStorageSync("index_nav", t.url), 
                        -1 != t.url.indexOf("../index/") || -1 != t.url.indexOf("../meituangroup/") || -1 != t.url.indexOf("../user/") || -1 != t.url.indexOf("../movie/") || -1 != t.url.indexOf("../shop/") || -1 != t.url.indexOf("../kefu/") || -1 != t.url.indexOf("../meituan/") || -1 != t.url.indexOf("../elm/") || -1 != t.url.indexOf("../mall/") ? r.navigateTo({
                            url: t.url
                        }) : -1 != t.url.indexOf("../../../pages/index/") || -1 != t.url.indexOf("../../../pages/user/") || -1 != t.url.indexOf("../../../pages/kefu/") ? (a = t.url.replace("../../../pages/", "../"), 
                        r.navigateTo({
                            url: a
                        })) : -1 != t.url.indexOf("../../../pages/meituan/") || -1 != t.url.indexOf("../../../pages/elm/") || -1 != t.url.indexOf("../../../pages/eat/") ? (a = t.url.replace("../../../pages/", "../../pagesA/pages/"), 
                        r.navigateTo({
                            url: a
                        })) : -1 != t.url.indexOf("../../pagesA/pages/movie/") || -1 != t.url.indexOf("../../pagesA/pages/shop/") || -1 != t.url.indexOf("../../pagesA/pages/mallA/mallindex") ? (a = t.url.replace("../../pagesA/pages/", "../"), 
                        r.navigateTo({
                            url: a
                        })) : -1 != t.url.indexOf("../../pagesA/pages/movieA/") || -1 != t.url.indexOf("../../pagesA/pages/shopA/") || -1 != t.url.indexOf("../../pagesA/pages/meituan/") || -1 != t.url.indexOf("../../pagesA/pages/elm/") || -1 != t.url.indexOf("../../pagesA/pages/eat/") || -1 != t.url.indexOf("../../pagesA/pages/userA/") ? r.navigateTo({
                            url: t.url
                        }) : -1 != t.url.indexOf("../meituan/") || -1 != t.url.indexOf("../elm/") || -1 != t.url.indexOf("../eat/") ? (a = t.url.replace("../", "../../pagesA/pages/"), 
                        r.navigateTo({
                            url: a
                        })) : "findorder" == t.url ? n.showDialog1() : r.navigateTo({
                            url: t.url
                        }), r.hideLoading(), r.hideLoading()) : 2 == t.adtype || 3 == t.adtype || 9 == t.adtype ? (e = s.globalData.util.url("entry/wxapp/api", {
                            m: s.globalData.module_name,
                            o: "ad_kefubind"
                        }), r.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                adtype: "ad_new",
                                adid: t.item_id,
                                openid: r.getStorageSync("openid")
                            },
                            success: function(e) {}
                        }), this.contact_title_desc = "", this.contact_type = "ad_new", this.contact_id = t.item_id, 
                        this.contact_title = t.title, this.contact_title_text = t.title_text, this.contact_title_desc = t.title_desc, 
                        this.contact_thumb = r.getStorageSync("setting").dianwo, r.hideLoading(), this.showDialog3()) : 8 == t.adtype ? 1 == t.mall_adtype ? r.navigateTo({
                            url: "../../pagesA/pages/mallA/huodong?id=" + t.item_id
                        }) : 2 == t.mall_adtype && this.loadMallapigoodslist(t) : 12 == t.adtype ? (r.previewImage({
                            urls: [ t.open_thumb ]
                        }), r.hideLoading()) : 13 == t.adtype && this.getCoupon(t);
                    },
                    loadMallapigoodslist: function(t) {
                        this.loadStatus = "loading";
                        var e = s.globalData.util.url("entry/wxapp/mallapigoodslist", {
                            m: s.globalData.module_name
                        });
                        r.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: r.getStorageSync("openid"),
                                id: t.item_id,
                                lon: r.getStorageSync("lon"),
                                lat: r.getStorageSync("lat")
                            },
                            success: function(e) {
                                200 == e.data.code && (e.data.appid ? r.navigateToMiniProgram({
                                    appId: e.data.appid,
                                    path: e.data.path
                                }) : r.navigateTo({
                                    url: "../../pagesA/pages/mallA/huodong?id=" + t.item_id
                                })), r.hideLoading();
                            }
                        });
                    },
                    getCoupon: function(t) {
                        var a = this;
                        if (r.getStorageSync("path" + t.item_id)) return r.getStorageSync("appid" + t.item_id) ? r.navigateToMiniProgram({
                            appId: r.getStorageSync("appid" + t.item_id),
                            path: r.getStorageSync("path" + t.item_id)
                        }) : r.setClipboardData({
                            data: r.getStorageSync("path" + t.item_id),
                            success: function(e) {
                                r.showToast({
                                    title: "内容已复制",
                                    icon: "success"
                                });
                            }
                        }), void r.hideLoading();
                        var e = s.globalData.util.url("entry/wxapp/mall_goods_getcoupon", {
                            m: s.globalData.module_name
                        });
                        r.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: r.getStorageSync("openid"),
                                goodsid: t.goodsid,
                                pingtai: t.mall_type,
                                goodssign: t.goodssign,
                                search_id: a.search_id,
                                quan_url: t.quan_url,
                                uid: a.uid,
                                id: t.item_id
                            },
                            success: function(e) {
                                200 == e.data.code && ("tb" == t.mall_type ? (a.path = e.data.tkl, r.setStorageSync("path" + t.item_id, e.data.tkl), 
                                r.setStorageSync("pid_time", e.data.pid_time), r.getStorageSync("pid_time") != r.getStorageSync("pid_use_time") && r.setStorageSync("pid_use_time", r.getStorageSync("pid_time")), 
                                r.setClipboardData({
                                    data: e.data.tkl,
                                    success: function(e) {
                                        r.showToast({
                                            title: "内容已复制",
                                            icon: "success"
                                        });
                                    }
                                })) : (a.appid = e.data.appid, a.path = e.data.path, r.setStorageSync("appid" + t.item_id, e.data.appid), 
                                r.setStorageSync("path" + t.item_id, e.data.path), r.navigateToMiniProgram({
                                    appId: e.data.appid,
                                    path: e.data.path
                                })), r.hideLoading());
                            }
                        });
                    }
                }
            };
            n.default = a;
        }).call(this, i("543d").default);
    },
    "306b": function(e, t, a) {
        a.r(t);
        var n, o = a("f0d4"), i = a("d6a0");
        for (n in i) "default" !== n && function(e) {
            a.d(t, e, function() {
                return i[e];
            });
        }(n);
        a("e912");
        var r = a("f0c5"), o = Object(r.a)(i.default, o.b, o.c, !1, null, null, null, !1, o.a, void 0);
        t.default = o.exports;
    },
    d637: function(e, t, a) {},
    d6a0: function(e, t, a) {
        a.r(t);
        var n, o = a("21f4"), i = a.n(o);
        for (n in o) "default" !== n && function(e) {
            a.d(t, e, function() {
                return o[e];
            });
        }(n);
        t.default = i.a;
    },
    e912: function(e, t, a) {
        var n = a("d637");
        a.n(n).a;
    },
    ec9a: function(e, t, a) {
        (function(e) {
            function t(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            a("0cda"), t(a("66fd")), e(t(a("306b")).default);
        }).call(this, a("543d").createPage);
    },
    f0d4: function(e, t, a) {
        a.d(t, "b", function() {
            return o;
        }), a.d(t, "c", function() {
            return i;
        }), a.d(t, "a", function() {
            return n;
        });
        var n = {
            uIcon: function() {
                return a.e("uview-ui/components/u-icon/u-icon").then(a.bind(null, "bee6"));
            },
            sjTabBar: function() {
                return a.e("components/sj-tab-bar/sj-tab-bar").then(a.bind(null, "1ba9"));
            }
        }, o = function() {
            this.$createElement;
            this._self._c;
        }, i = [];
    }
}, [ [ "ec9a", "common/runtime", "common/vendor" ] ] ]);